package models;
 
import java.util.*;
import javax.persistence.*;
 
import play.data.validation.Required;
import play.db.jpa.*;
 
@Entity
public class Employee extends Model {
 
	@Required
	@Column(unique=true)
	public String username;
	@Required
	public String password;
	@Required
	public String firstname;
	@Required
	public String lastname;    
    
    public Employee(String username, String password, String firstname, String lastname) {
        this.username = username;
        this.password = password;
        this.firstname = firstname;
        this.lastname = lastname;
    }
    
    public String toString() {
    	return this.username;
    }
 
}